package git.soulbgm.common.pojo;

/**
 * @author SoulBGM
 * @version V1.0
 * @date 2019-07-03 18:16:36
 * @description
 */
public enum ReturnCode {

    //返回成功信息
    SUCCESS(0,"成功"),

    SAVE_FAIL(1, "添加失败"),

    REMOVE_FAIL(2, "添加失败"),

    UPDATE_FAIL(3, "修改失败"),

    INVALID_FAIL(4, "此ID不存在"),

    FIND_FAIL(5, "查询失败"),

    ERROR1(100,"格式错误"),

    ERROR2(200,"token值无效，需要重新登录"),

    ERROR3(300,"没有权限"),

    ERROR4(400,"没找到被操作的数据"),

    ERROR4_1(401,"没找到指定用户的数据"),

    ERROR5(500,"服务不可用"),

    ERROR6(600,"字数超过限制"),

    ERROR7(700,"后台出现异常错误"),

    ERROR10(1000,"具体的业务错误");

    int code;
    String msg;

    ReturnCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
